package AbstractTransactions

import "Salary/Model"

type ChangeClassificationTransactions interface {
	GetClassification() Model.PaymentClassification
	GetSchedule() Model.PaymentSchedule
}

type ChangeClassificationTransaction struct{
	ChangeClassificationTransactions
	ChangeEmployeeTransaction
	empid int
}

func (cha *ChangeClassificationTransaction)Get(empid int){
	cha.empid = empid
}

func(cha *ChangeClassificationTransaction)Changes(e Model.Employee){

 	pc := cha.GetClassification()
	e.SetClassification(pc)
	ps := cha.GetSchedule()
	e.SetSchedule(ps)
}
